package com.msb.rediscluster.controller;

import com.msb.rediscluster.access.RedisString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private RedisString redisString;
    @GetMapping("set")
    public void set(){
        redisString.set("20250119","test111");
    }

    @GetMapping("get")
    public void get(){
        System.out.println(redisString.get("20250119"));


    }
}
